﻿<%@ Page Language="C#" MasterPageFile="~/WebSite.Master" AutoEventWireup="true" 
CodeBehind="UserCAInfo.aspx.cs" Inherits="RN.ERP.Web.Manage.UserCAInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Styles/skins/blue/css/style_msg.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Scripts/jquery.min.js"></script>
    <script type="text/javascript" src="../Scripts/ligerUI/js/ligerui.min.js"></script>
    <script type="text/javascript" src="../Scripts/ligerUI/js/plugins/ligerGrid.js"></script>
    <script type="text/javascript" src="../Scripts/ligerUI/js/plugins/ligerLayout.js"></script>
    <script type="text/javascript" src="../Scripts/ligerUI/js/plugins/ligerTextBox.js"></script>
    <script src="../Scripts/ligerUI/js/ligerui.all.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
        $(function () {
            String.prototype.getQuery = function (name) {
                var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
                var r = this.substr(this.indexOf("\?") + 1).match(reg);
                if (r != null) return unescape(r[2]);
                return null;
            }

            var CorpUserGuid = window.location.toString().getQuery('CorpUserGuid');
            var caGrid;

            caGrid = $("#cagrid").ligerGrid({
                columns:
                [
                { display: '企业名称', name: 'iTitle', width: 200, align: 'left' },
                { display: 'CA类别', name: 'bCAKind', width: 50, align: 'center' },
                { display: 'CA状态', name: 'CAStatus', width: 100, align: 'center' },
                { display: '支付金额', name: 'SumPay', width: 50, align: 'left' },
                { display: '地区编号', name: 'AreaCode', width: 50, align: 'center' },
                { display: '联系人', name: 'LinkPerson', width: 50, align: 'center' },
                { display: '系统名称', name: 'Title', width: 200, align: 'left' },
                { display: '系统描述', name: 'Description', width: 450, align: 'left' },
                { display: '地址', name: 'SendAddress', width: 200, align: 'left' },
                { display: '电话', name: 'officeTel', width: 100, align: 'left' },
                { display: '手机', name: 'mobileTel', width: 100, align: 'left' },
                { display: '流程码', name: 'FlowCode', width: 100, align: 'left' },
                { display: '注册日期', name: 'RegisterDate', width: 200, align: 'left' }
                ], showToggleColBtn: false, width: '100%', height: 300, rowHeight: 20, fixedCellHeight: true,
                columnWidth: 100, frozen: false, checkbox: false, rownumbers: true, usePager: false,
                data: []
            });
            $.ajax({
                type: 'get',
                cache: false,
                dataType: 'json',
                url: '../handlers/AuthorityHandler.ashx?act=getcainfo&CorpUserGuid=' + CorpUserGuid + '&r=' + Math.random(),
                success: function (result) {
                    caGrid.set('data', { Rows: result });
                }
            });

        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="layout" style="margin: 0 auto; margin-right: 3px;">
    <div position="center" style="margin: 0 auto;" id="mainmenu">
        <div id="cagrid" style="margin: 2px auto;">
        </div>
    </div>
</div>

<%--<div id="layout" style="margin: 2px; margin-right: 3px;">
    <div position="center"  style="margin: 0 auto;" title="CA状态列表">
        <div id="cagrid" style="margin: 2px auto;">
        </div>
    </div>
</div>--%>
</asp:Content>
